<?php
require_once ('../../simpletest/autorun.php');

class TestTemplate extends UnitTestCase {
    
    
    //refer to http://www.simpletest.org/en/unit_test_documentation.html
    function testPHPBitOperator(){ 
        $this->assertTrue((1&1) == 1);
        $this->assertTrue((2&2) == 2);
        $this->assertTrue((4&4) == 4);
        $this->assertTrue((8&8) == 8);
        
        $this->assertTrue((1&2) == 0);
        $this->assertTrue((1&5) === 1);
        $this->assertTrue((3&5) === 1);
    }
}
?>
